package com.xtpt.disaster.bean;

import org.springframework.stereotype.Component;

@Component
public class SpringScheduledCronRepository {
    private Long cronId;
    private String cronKey;
    private String cronExpression;
    private String taskExplain;
    private Integer status;

    public SpringScheduledCronRepository() {
    }

    public SpringScheduledCronRepository(Long cronId, String cronKey, String cronExpression, String taskExplain, Integer status) {
        this.cronId = cronId;
        this.cronKey = cronKey;
        this.cronExpression = cronExpression;
        this.taskExplain = taskExplain;
        this.status = status;
    }

    public Long getCronId() {
        return cronId;
    }

    public void setCronId(Long cronId) {
        this.cronId = cronId;
    }

    public String getCronKey() {
        return cronKey;
    }

    public void setCronKey(String cronKey) {
        this.cronKey = cronKey;
    }

    public String getCronExpression() {
        return cronExpression;
    }

    public void setCronExpression(String cronExpression) {
        this.cronExpression = cronExpression;
    }

    public String getTaskExplain() {
        return taskExplain;
    }

    public void setTaskExplain(String taskExplain) {
        this.taskExplain = taskExplain;
    }

    public Integer getStatus() {
        return status;
    }

    public void setStatus(Integer status) {
        this.status = status;
    }

    @Override
    public String toString() {
        return "SpringScheduledCronRepository{" +
                "cronId=" + cronId +
                ", cronKey='" + cronKey + '\'' +
                ", cronExpression='" + cronExpression + '\'' +
                ", taskExplain='" + taskExplain + '\'' +
                ", status=" + status +
                '}';
    }
}
